from django.conf.urls.defaults import *

urlpatterns = patterns('',
    (r'^create/$', 'cv.views.learnerInformation_create', {'template_name': 'learnerinformation_form.html'}, ),
    (r'^update/(?P<object_id>\d+)/$', 'cv.views.learnerInformation_update', {'template_name': 'learnerinformation_form.html'}, ),
    (r'^update/(?P<object_id>\d+)/work/$', 'cv.views.learnerInformation_work_update', {'template_name': 'inline_formset.html'}, 'learnerInformation_work_update'),
    (r'^update/(?P<object_id>\d+)/photo/$', 'cv.views.learnerInformation_photo_update', {'template_name': 'photo_form.html'}, 'learnerInformation_photo_update'),
    (r'^update/(?P<object_id>\d+)/(?P<form>\w+)/$', 'cv.views.learnerInformation_update', {'template_name': 'learnerinformation_form.html'}, 'learnerInformation_update'),
    (r'^american/(?P<object_id>.+).odt$', 'cv.views.learnerInformation_american_odt',),
    (r'^american/(?P<object_id>.+).pdf$', 'cv.views.learnerInformation_american_convert',),
    (r'^american/(?P<object_id>.+).doc$', 'cv.views.learnerInformation_american_convert', {'mimetype': 'application/msword', 'format': 'doc'}),
    (r'^american/(?P<object_id>.+).html$', 'cv.views.learnerInformation_american_convert', {'mimetype': 'text/html', 'format': 'html'}),
    (r'^american/(?P<object_id>.+).rtf$', 'cv.views.learnerInformation_american_convert', {'mimetype': 'text/rtf', 'format': 'rtf'}),
    (r'^(?P<id>.+).xml$', 'cv.views.learnerInformation_xml_v12', ),
    (r'^(?P<object_id>.+).html$', 'cv.views.learnerInformation_html_v12', ),
    (r'^(?P<id>.+).pdf$', 'cv.views.learnerInformation_pdf', ),
    (r'^(?P<id>.+).doc$', 'cv.views.learnerInformation_doc', ),
    (r'^(?P<id>.+).odt$', 'cv.views.learnerInformation_odt', ),
)